import React from 'react';
import logo from './logo.svg';
import './App.css';
import { Link, Route, Routes } from 'react-router-dom'
import Cat from './views/Cat';
import Dog from './views/Dog';

function App() {
  return (
    <div className="App">
      <Link to={'/cat'}>CAT</Link>
        <Link to={'/dog'}>DOG</Link>
        <Routes>
          <Route path='/' element={<Cat></Cat>}></Route>
          <Route path='/cat' element={<Cat></Cat>}></Route>
          <Route path='/dog' element={<Dog></Dog>}></Route>
        </Routes>
    </div>
  );
}

export default App;
